<?php
	
	
$config = array(
	'school_setting' => array(
			            array(
							'field' => 'school_name',
							'label' => 'School Name',
							'rules' => 'required'
						),
						array(
							'field' => 'school_address',
							'label' => 'School Address',
							'rules' => 'required'
						)
	),
	'school_year' => array(
			            array(
							'field' => 'sy_from',
							'label' => 'School Year From',
							'rules' => 'required'
						),
						array(
							'field' => 'sy_to',
							'label' => 'School Year To',
							'rules' => 'required'
						)
	),
	'news_and_events' => array(
			            array(
							'field' => 'caption',
							'label' => 'Caption',
							'rules' => 'required'
						),
						array(
							'field' => 'announcement_date',
							'label' => 'Date',
							'rules' => 'required'
						),
						array(
							'field' => 'announcement',
							'label' => 'Announcement or Event',
							'rules' => 'required'
						)
	),
	'user_add' => array(
			            array(
							'field' => 'username',
							'label' => 'username',
							'rules' => 'required'
						),
						array(
							'field' => 'password',
							'label' => 'password',
							'rules' => 'required'
						),
						array(
							'field' => 'userType',
							'label' => 'User Type',
							'rules' => 'required'
						),
						array(
							'field' => 'userStatus',
							'label' => 'User Status',
							'rules' => 'required'
						)
	),
		'user_update' => array(
			            array(
							'field' => 'username',
							'label' => 'username',
							'rules' => 'required'
						),
						array(
							'field' => 'userType',
							'label' => 'User Type',
							'rules' => 'required'
						),
						array(
							'field' => 'userStatus',
							'label' => 'User Status',
							'rules' => 'required'
						)
	),
		'user_change_pass' => array(
						array(
							'field' => 'old_password',
							'label' => 'old password',
							'rules' => 'required'
						),
						array(
							'field' => 'new_password',
							'label' => 'new password',
							'rules' => 'required'
						),
						array(
							'field' => 'c_new_password',
							'label' => 'confirm new password',
							'rules' => 'required|matches[new_password]'
						)
	),
		'user_register' => array(
						array(
							'field' => 'student_type',
							'label' => 'Student type',
							'rules' => 'required',
						),
						array(
							'field' => 'level_id',
							'label' => 'Level',
							'rules' => 'required'
						),
						array(
							'field' => 'lastname',
							'label' => 'Lastname',
							'rules' => 'required'
						),
						array(
							'field' => 'firstname',
							'label' => 'Firstname',
							'rules' => 'required'
						),
						array(
							'field' => 'middlename',
							'label' => 'Middlename',
							'rules' => 'required'
						),
						array(
							'field' => 'gender',
							'label' => 'Gender',
							'rules' => 'required'
						),
						array(
							'field' => 'civilstatus',
							'label' => 'Civil status',
							'rules' => 'required'
						),
						array(
							'field' => 'dob',
							'label' => 'Date of birth',
							'rules' => 'required'
						),
						array(
							'field' => 'pob',
							'label' => 'Place of birth',
							'rules' => 'required'
						),
						array(
							'field' => 'age',
							'label' => 'Age',
							'rules' => 'required'
						),
						array(
							'field' => 'nationality',
							'label' => 'Nationality',
							'rules' => 'required'
						),
						array(
							'field' => 'religion',
							'label' => 'Religion',
							'rules' => 'required'
						),
						array(
							'field' => 'contact_no',
							'label' => 'Contact No.',
							'rules' => 'required'
						),
						array(
							'field' => 'email',
							'label' => 'Email',
							'rules' => 'required|valid_email'
						),						
						array(
							'field' => 'present_address',
							'label' => 'Present address',
							'rules' => 'required'
						),
						array(
							'field' => 'fathername',
							'label' => 'Father\'s name',
							'rules' => 'required'
						),
						array(
							'field' => 'father_occupation',
							'label' => 'Father\'s occupation',
							'rules' => 'required'
						),
						array(
							'field' => 'father_contact_no',
							'label' => 'Father\'s contact no.',
							'rules' => 'required'
						),
						array(
							'field' => 'mothername',
							'label' => 'Mother\'s name',
							'rules' => 'required'
						),
						array(
							'field' => 'mother_occupation',
							'label' => 'Mother\'s occupation',
							'rules' => 'required'
						),
						array(
							'field' => 'mother_contact_no',
							'label' => 'Mother\'s contact no.',
							'rules' => 'required'
						),
						array(
							'field' => 'parent_address',
							'label' => 'Parent\'s address',
							'rules' => 'required'
						),
						array(
							'field' => 'guardian_name',
							'label' => 'Guardian\'s name',
							'rules' => 'required'
						),
						array(
							'field' => 'relationship',
							'label' => 'Relationship to guardian',
							'rules' => 'required'
						),
						array(
							'field' => 'guardian_contact_no',
							'label' => 'Guardian\'s contact no.',
							'rules' => 'required'
						),
						array(
							'field' => 'guardian_address',
							'label' => 'Guardian\'s address',
							'rules' => 'required'
						),
						array(
							'field' => 'last_school_name',
							'label' => 'Last school\'s name',
							'rules' => 'required'
						),
						array(
							'field' => 'last_school_address',
							'label' => 'Last school\'s address',
							'rules' => 'required'
						),
						array(
							'field' => 'last_school_level',
							'label' => 'Level from last school',
							'rules' => 'required'
						),
						array(
							'field' => 'last_school_year',
							'label' => 'Year from last school',
							'rules' => 'required'
						),
						
	),
	'user_student_update' => array(
						array(
							'field' => 'student_type',
							'label' => 'Student type',
							'rules' => 'required',
						),
						array(
							'field' => 'level_id',
							'label' => 'Level',
							'rules' => 'required'
						),
						array(
							'field' => 'lastname',
							'label' => 'Lastname',
							'rules' => 'required'
						),
						array(
							'field' => 'firstname',
							'label' => 'Firstname',
							'rules' => 'required'
						),
						array(
							'field' => 'middlename',
							'label' => 'Middlename',
							'rules' => 'required'
						),
						array(
							'field' => 'gender',
							'label' => 'Gender',
							'rules' => 'required'
						),
						array(
							'field' => 'civilstatus',
							'label' => 'Civil status',
							'rules' => 'required'
						),
						array(
							'field' => 'dob',
							'label' => 'Date of birth',
							'rules' => 'required'
						),
						array(
							'field' => 'pob',
							'label' => 'Place of birth',
							'rules' => 'required'
						),
						array(
							'field' => 'age',
							'label' => 'Age',
							'rules' => 'required'
						),
						array(
							'field' => 'nationality',
							'label' => 'Nationality',
							'rules' => 'required'
						),
						array(
							'field' => 'religion',
							'label' => 'Religion',
							'rules' => 'required'
						),
						array(
							'field' => 'contact_no',
							'label' => 'Contact No.',
							'rules' => 'required'
						),
						array(
							'field' => 'email',
							'label' => 'Email',
							'rules' => 'required|valid_email'
						),						
						array(
							'field' => 'present_address',
							'label' => 'Present address',
							'rules' => 'required'
						),
						array(
							'field' => 'fathername',
							'label' => 'Father\'s name',
							'rules' => 'required'
						),
						array(
							'field' => 'father_occupation',
							'label' => 'Father\'s occupation',
							'rules' => 'required'
						),
						array(
							'field' => 'father_contact_no',
							'label' => 'Father\'s contact no.',
							'rules' => 'required'
						),
						array(
							'field' => 'mothername',
							'label' => 'Mother\'s name',
							'rules' => 'required'
						),
						array(
							'field' => 'mother_occupation',
							'label' => 'Mother\'s occupation',
							'rules' => 'required'
						),
						array(
							'field' => 'mother_contact_no',
							'label' => 'Mother\'s contact no.',
							'rules' => 'required'
						),
						array(
							'field' => 'parent_address',
							'label' => 'Parent\'s address',
							'rules' => 'required'
						),
						array(
							'field' => 'guardian_name',
							'label' => 'Guardian\'s name',
							'rules' => 'required'
						),
						array(
							'field' => 'relationship',
							'label' => 'Relationship to guardian',
							'rules' => 'required'
						),
						array(
							'field' => 'guardian_contact_no',
							'label' => 'Guardian\'s contact no.',
							'rules' => 'required'
						),
						array(
							'field' => 'guardian_address',
							'label' => 'Guardian\'s address',
							'rules' => 'required'
						),
						array(
							'field' => 'last_school_name',
							'label' => 'Last school\'s name',
							'rules' => 'required'
						),
						array(
							'field' => 'last_school_address',
							'label' => 'Last school\'s address',
							'rules' => 'required'
						),
						array(
							'field' => 'last_school_level',
							'label' => 'Level from last school',
							'rules' => 'required'
						),
						array(
							'field' => 'last_school_year',
							'label' => 'Year from last school',
							'rules' => 'required'
						),
						
	),
		'grade_level' => array(
						array(
							'field' => 'level_code',
							'label' => 'Level Code',
							'rules' => 'required'
						),
						array(
							'field' => 'level_desc',
							'label' => 'level Description',
							'rules' => 'required'
						),
						array(
							'field' => 'level_stat',
							'label' => 'Level Status',
							'rules' => 'required'
						)
	),
		'grade_level_section' => array(
						array(
							'field' => 'section_name',
							'label' => 'Section Name',
							'rules' => 'required'
						),
						array(
							'field' => 'section_grade_level',
							'label' => 'Grade Level',
							'rules' => 'required'
						),
						array(
							'field' => 'section_employee_name',
							'label' => 'Section Adviser',
							'rules' => 'required'
						)
						
	),
		'grading_period' => array(
						array(
							'field' => 'gp_code',
							'label' => 'Grading Period Code',
							'rules' => 'required'
						),
						array(
							'field' => 'gp_desc',
							'label' => 'Grading Period Description',
							'rules' => 'required'
						),
						array(
							'field' => 'gp_stat',
							'label' => 'Grading period Status',
							'rules' => 'required'
						)
		),
		'fees' => array(
						array(
							'field' => 'fee_name',
							'label' => 'Fee Name',
							'rules' => 'required'
						),
						array(
							'field' => 'fee_desc',
							'label' => 'Fee description',
							'rules' => 'required'
						),
						array(
							'field' => 'fee_rate',
							'label' => 'Fee Rate',
							'rules' => 'required'
						)
		),
		'new_enrollee' => array(
						array(
							'field' => 'idno',
							'label' => 'ID Number',
							'rules' => 'required|integer|is_unique[users.username]'
						),
						array(
							'field' => 'level_id',
							'label' => 'Level',
							'rules' => 'required'
						),
						array(
							'field' => 'lastname',
							'label' => 'Lastname',
							'rules' => 'required'
						),
						array(
							'field' => 'firstname',
							'label' => 'Firstname',
							'rules' => 'required'
						),
						array(
							'field' => 'middlename',
							'label' => 'Middlename',
							'rules' => 'required'
						),
						array(
							'field' => 'gender',
							'label' => 'Gender',
							'rules' => 'required'
						),
						array(
							'field' => 'dob',
							'label' => 'Date of birth',
							'rules' => 'required'
						),
						array(
							'field' => 'pob',
							'label' => 'Place of birth',
							'rules' => 'required'
						),
						array(
							'field' => 'age',
							'label' => 'Age',
							'rules' => 'required'
						),					
						array(
							'field' => 'present_address',
							'label' => 'Present address',
							'rules' => 'required'
						),
						array(
							'field' => 'fathername',
							'label' => 'Father\'s name',
							'rules' => 'required'
						),
						array(
							'field' => 'father_contact_no',
							'label' => 'Father\'s contact no.',
							'rules' => 'required'
						),
						array(
							'field' => 'mothername',
							'label' => 'Mother\'s name',
							'rules' => 'required'
						),
						array(
							'field' => 'mother_contact_no',
							'label' => 'Mother\'s contact no.',
							'rules' => 'required'
						),
						array(
							'field' => 'parent_address',
							'label' => 'Parent\'s address',
							'rules' => 'required'
						),
						array(
							'field' => 'last_school_name',
							'label' => 'Last school\'s name',
							'rules' => 'required'
						),
						array(
							'field' => 'last_school_address',
							'label' => 'Last school\'s address',
							'rules' => 'required'
						),
						array(
							'field' => 'last_school_level',
							'label' => 'Level from last school',
							'rules' => 'required'
						),
						array(
							'field' => 'last_school_year',
							'label' => 'Year from last school',
							'rules' => 'required'
						),
						
	),
			'add_payment_record' => array(
						array(
							'field' => 'spr_or_no',
							'label' => 'OR Number',
							'rules' => 'trim|required|alpha_dash'
						),
						array(
							'field' => 'ammount_paid',
							'label' => 'Ammount Paid',
							'rules' => 'trim|required|numeric'
						),
						array(
							'field' => 'date_of_payment',
							'label' => 'Date of Payment',
							'rules' => 'trim|required'
						),
						array(
							'field' => 'remarks',
							'label' => 'Remarks for payment',
							'rules' => 'trim'
						)
		)

);

?>